package com.codechuan.hallo_web.utils;

import com.alibaba.fastjson.JSONObject;

import java.util.HashMap;

public class ResultUtils {
    public static String success(String data,String message,Integer code){
        HashMap<String,Object> hashMap = new HashMap<>();
        hashMap.put("data",data);
        hashMap.put("message",message);
        hashMap.put("code",code);
        return JSONObject.toJSONString(hashMap);
    }
}
